package com.soft.javase.day03.practice.employee;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/17
 */
public class EmployeeUtil {
    // 涨工资
    public static void bonus(Employee e){
        // 获得到的薪资>10000，则涨薪水20%，否则涨薪10%
        if (e.getSalary()>10000){
            e.setSalary(e.getSalary()*1.2);
        }else {
            e.setSalary(e.getSalary()*1.1);
        }

    }
}
